package com.wzp.yyptproject.service;



import com.github.pagehelper.PageInfo;
import com.wzp.yyptproject.entity.User;
import com.wzp.yyptproject.request.UserRequest;
import com.wzp.yyptproject.request.UserRequestZhuCe;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface UserService {
    String loginCode(Integer code);
    String getChickCode();
    String pswdLogin(String uname, String upassword, String uidcard);
    String MessLogin( String uname, String uphonenum, String uidcard,String checkCode);
//    String addUser(User user);
     String addUser(String uname,String uphonenum, String uidcard,String phonecode ,String ucode,String upassword,String uemail) ;

    boolean findAndByUcode(String ucode) ;
    boolean findAndByUemail(String uemail) ;
    boolean updateuser(String uname,String uphonenum, String uidcard,String phonecode ,String upassword);
    User findAndByUUid(Integer uid);
    User  findAndByUnameAndUidcard(String uname,String uidcard);
    Integer usercount();
    List<User> findAll();
    PageInfo<User> getUser(int pageNum, int pageSize);
    Page<User> findByPage(int pageCode,int pageSize);
   boolean updateUsermess(User user);
    boolean updatePswd(String uname, String uidcard, String upassword, String newupassword);
}
